#overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.4);
    text-align: center;
    overflow: auto;
    padding: 80px;
}
#form {
    display: inline-block;
    background: #FFF;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    text-align: left;
}
#form h1 {
    margin: 0;
    padding: 14px 30px;
    background: #444;
    color: #FFF;
    font-weight: normal;
    border-radius: 4px 4px 0 0;
    font-size: 16px;
}
#form form {
    display: block;
    padding: 20px 30px;
}
#form form .part {
    float: left;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid #D5D5D5;
}
#form form .part:first-of-type {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
}
#form form .line {
    margin-bottom: 8px;
}
#form form label {
    display: inline-block;
    width: 100px;
    color: #999;
}
#form form input[type=text], #form form textarea {
    padding: 6px 10px;
    border-radius: 2px;
    border: 1px solid #AAA;
    width: 150px;
    background: #FAFAFA;
    outline: none;
}
#form form input[type=text]:focus, #form form textarea:focus {
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.25) inset;
    background: #F6F6F6;
}
#form form textarea {
    display: block;
    width: 100%;
}
#form form input[type=text].small {
    width: 50px;
}
#form form input[type=text].medium {
    width: 80px;
}


#form form .add-event {
    display: block;
    text-align: center;
    border: 1px solid #EEE;
    border-radius: 2px;
    padding: 4px;
    color: #CCC;
    width: 300px;
}
#form form .add-event:hover {
    color: #AAA;
    border: 1px solid #CCC;
}

#form .actions {
    padding-top: 8px;
    margin-top: 12px;
    border-top: 1px solid #DDD;
}
#form .actions input[type=submit] {
    float: right;
    padding: 6px 12px;
    border-radius: 2px;
    background: #FFF;
    color: #777;
    border: 1px solid #AAA;
}
#form .actions input[type=submit]:hover {
    background: #444;
    border: 1px solid #444;
    color: #FFF;
    cursor: pointer;
}


/*
 * LINE EVENT
 */
#form form .line.event {
    margin-bottom: 10px;
}
#form form .line.event input[type=text] {
    float: left;
    margin-bottom: -1px;
    border-radius: 0;
    border-left-width: 0;
}
#form form .line.event input[type=text]:first-child {
    float: left;
    margin-bottom: -1px;
    border-radius: 2px 0 0 0;
    border-left-width: 1px;
}
#form form .line.event input[type=text]:last-child {
    float: left;
    margin-bottom: -1px;
    border-radius: 0 2px 0 0;
}
#form form .line.event textarea {
    max-width: 310px;
}